package Staff;

import Organization.Department;

import java.util.ArrayList;

public class StaffList {
    private ArrayList<Staff> staffMembers = new ArrayList<Staff>();

    public void addStaff(Staff staff) {
        staffMembers.add(staff);
    }

    public void accept(Department handler) {
        for (Staff member : staffMembers) {
            member.accept(handler);
        }
    }
}
